cmake_minimum_required(VERSION 3.10)

project(simple_database)

# 设置构建类型为 Debug
set(CMAKE_BUILD_TYPE Debug)

# 将 -g 参数添加到编译选项中
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g -Wall")

include_directories(
                    "${PROJECT_BINARY_DIR}"
                    "${PROJECT_SOURCE_DIR}/include"
                  )

file(GLOB_RECURSE SOURCE_LIST "src/*.c" "include/*.h")

add_executable(${PROJECT_NAME} main.c ${SOURCE_LIST} )